package cn.wd.qo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class QueryObject {

    private Integer current = 1;
    private Integer pageSize = 5;
    private String keyword;
    private String initKeyword;

    public Integer getStart() {
        return (current - 1) * pageSize;
    }
}
